import React, { Component } from 'react'
import { Link } from "react-router-dom";

class Home extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
           
                <div>
                    <ul>
                        <li>
                            <Link to="/main">main</Link>
                        </li>
                        <li>
                            <Link to="/about">about</Link>
                        </li>
                        <li>
                            <Link to="/topic">topic</Link>
                        </li>
                        <li>
                            <Link to="/topic2">topic2</Link>
                        </li>
                    </ul>
                    <hr></hr>
                   {this.props.children}

                </div>
            
        )
    }
}
export default Home;